package com.shrct.businessprocess.diagnose;

import com.shrct.businessprocess.diagnose.DiagnoseLevel;
import edu.fudan.mylang.pf.BaseDataType;
import edu.fudan.mylang.pf.IModelObject;

public class DiagnoseItem extends BaseDataType {
  public DiagnoseItem() {
    super();
  }
  
  private String entityType;
  
  public String getEntityType() {
    return this.entityType;
  }
  
  public DiagnoseItem setEntityType(final String entityType) {
    this.entityType = entityType;
    return this;			
    
  }
  
  private Long entityId;
  
  public Long getEntityId() {
    return this.entityId;
  }
  
  public DiagnoseItem setEntityId(final Long entityId) {
    this.entityId = entityId;
    return this;			
    
  }
  
  private IModelObject domainObject;
  
  public IModelObject getDomainObject() {
    return this.domainObject;
  }
  
  public DiagnoseItem setDomainObject(final IModelObject domainObject) {
    this.domainObject = domainObject;
    return this;			
    
  }
  
  private String diagnoseKey;
  
  public String getDiagnoseKey() {
    return this.diagnoseKey;
  }
  
  public DiagnoseItem setDiagnoseKey(final String diagnoseKey) {
    this.diagnoseKey = diagnoseKey;
    return this;			
    
  }
  
  private String message;
  
  public String getMessage() {
    return this.message;
  }
  
  public DiagnoseItem setMessage(final String message) {
    this.message = message;
    return this;			
    
  }
  
  private DiagnoseLevel level = DiagnoseLevel.warn;
  
  public DiagnoseLevel getLevel() {
    return this.level;
  }
  
  public DiagnoseItem setLevel(final DiagnoseLevel level) {
    this.level = level;
    return this;			
    
  }
  
  public static DiagnoseItem create() {
    return new DiagnoseItem();
    
    
  }
}
